<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: fixup_handler_t Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structfixup__handler__t-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">fixup_handler_t Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implements the core behavior of a custom fixup. </p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a52d7a5c064eab01a63f34ded5bb150f8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a52d7a5c064eab01a63f34ded5bb150f8"></a>
<a class="el" href="pro_8h.html#a56f1a81c92849566ae864511088eb7e8">int32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfixup__handler__t.html#a52d7a5c064eab01a63f34ded5bb150f8">cbsize</a></td></tr>
<tr class="memdesc:a52d7a5c064eab01a63f34ded5bb150f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">size of this structure <br /></td></tr>
<tr class="separator:a52d7a5c064eab01a63f34ded5bb150f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad51cbef6f87099b42310de8c6e896163"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad51cbef6f87099b42310de8c6e896163"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfixup__handler__t.html#ad51cbef6f87099b42310de8c6e896163">name</a></td></tr>
<tr class="memdesc:ad51cbef6f87099b42310de8c6e896163"><td class="mdescLeft">&#160;</td><td class="mdescRight">Format name, must be unique. <br /></td></tr>
<tr class="separator:ad51cbef6f87099b42310de8c6e896163"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8790360005d3c1574100c8665a59013"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8790360005d3c1574100c8665a59013"></a>
<a class="el" href="pro_8h.html#a1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfixup__handler__t.html#af8790360005d3c1574100c8665a59013">props</a></td></tr>
<tr class="memdesc:af8790360005d3c1574100c8665a59013"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="group___f_h_f__.html">Fixup handler properties</a> <br /></td></tr>
<tr class="separator:af8790360005d3c1574100c8665a59013"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae7b3073ac6e4a2099b965824e0c1966d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae7b3073ac6e4a2099b965824e0c1966d"></a>
<a class="el" href="pro_8h.html#adde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__fh__options.html#gae7b3073ac6e4a2099b965824e0c1966d">size</a></td></tr>
<tr class="memdesc:gae7b3073ac6e4a2099b965824e0c1966d"><td class="mdescLeft">&#160;</td><td class="mdescRight">size in bytes <br /></td></tr>
<tr class="separator:gae7b3073ac6e4a2099b965824e0c1966d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf430f824beaa0786e687e16756554065"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf430f824beaa0786e687e16756554065"></a>
<a class="el" href="pro_8h.html#adde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__fh__options.html#gaf430f824beaa0786e687e16756554065">width</a></td></tr>
<tr class="memdesc:gaf430f824beaa0786e687e16756554065"><td class="mdescLeft">&#160;</td><td class="mdescRight">number of significant bits before shifting <br /></td></tr>
<tr class="separator:gaf430f824beaa0786e687e16756554065"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6de49b5dbb84d7af99012416767d288b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#adde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__fh__options.html#ga6de49b5dbb84d7af99012416767d288b">shift</a></td></tr>
<tr class="memdesc:ga6de49b5dbb84d7af99012416767d288b"><td class="mdescLeft">&#160;</td><td class="mdescRight">number of bits to shift right before patching.  <a href="group__fh__options.html#ga6de49b5dbb84d7af99012416767d288b">More...</a><br /></td></tr>
<tr class="separator:ga6de49b5dbb84d7af99012416767d288b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga32b0e70c2b1914672bb4e285f311546f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga32b0e70c2b1914672bb4e285f311546f"></a>
<a class="el" href="pro_8h.html#adde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><b>rsrv4</b></td></tr>
<tr class="separator:ga32b0e70c2b1914672bb4e285f311546f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4707af9d7b13e8eed74ddc3ebbdd0b53"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga4707af9d7b13e8eed74ddc3ebbdd0b53"></a>
<a class="el" href="pro_8h.html#a1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__fh__options.html#ga4707af9d7b13e8eed74ddc3ebbdd0b53">reftype</a></td></tr>
<tr class="memdesc:ga4707af9d7b13e8eed74ddc3ebbdd0b53"><td class="mdescLeft">&#160;</td><td class="mdescRight">reference info type and flags, std_apply() produces an offset of this type <br /></td></tr>
<tr class="separator:ga4707af9d7b13e8eed74ddc3ebbdd0b53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa07d892e78d05a2c7db3695795acff2d"><td class="memItemLeft" align="right" valign="top">bool(<a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfixup__handler__t.html#aa07d892e78d05a2c7db3695795acff2d">apply</a> )(const <a class="el" href="structfixup__handler__t.html">fixup_handler_t</a> *fh, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> item_ea, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> fixup_ea, int opnum, bool is_macro, const <a class="el" href="structfixup__data__t.html">fixup_data_t</a> &amp;fd)</td></tr>
<tr class="memdesc:aa07d892e78d05a2c7db3695795acff2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply a fixup: take it into account while analyzing the file.  <a href="#aa07d892e78d05a2c7db3695795acff2d">More...</a><br /></td></tr>
<tr class="separator:aa07d892e78d05a2c7db3695795acff2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1407a907fd1d996e76ce45faeeaab49a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#aef265b11f25357d520dcfd40aa8c18f3">uval_t</a>(<a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfixup__handler__t.html#a1407a907fd1d996e76ce45faeeaab49a">get_value</a> )(const <a class="el" href="structfixup__handler__t.html">fixup_handler_t</a> *fh, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea)</td></tr>
<tr class="memdesc:a1407a907fd1d996e76ce45faeeaab49a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the operand value.  <a href="#a1407a907fd1d996e76ce45faeeaab49a">More...</a><br /></td></tr>
<tr class="separator:a1407a907fd1d996e76ce45faeeaab49a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a746e5b923d4af600fa5fc013f75d140f"><td class="memItemLeft" align="right" valign="top">bool(<a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfixup__handler__t.html#a746e5b923d4af600fa5fc013f75d140f">patch_value</a> )(const <a class="el" href="structfixup__handler__t.html">fixup_handler_t</a> *fh, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, const <a class="el" href="structfixup__data__t.html">fixup_data_t</a> &amp;fd)</td></tr>
<tr class="memdesc:a746e5b923d4af600fa5fc013f75d140f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Patch the fixup bytes.  <a href="#a746e5b923d4af600fa5fc013f75d140f">More...</a><br /></td></tr>
<tr class="separator:a746e5b923d4af600fa5fc013f75d140f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="aa07d892e78d05a2c7db3695795acff2d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool(<a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> * fixup_handler_t::apply) (const <a class="el" href="structfixup__handler__t.html">fixup_handler_t</a> *fh, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> item_ea, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> fixup_ea, int opnum, bool is_macro, const <a class="el" href="structfixup__data__t.html">fixup_data_t</a> &amp;fd)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Apply a fixup: take it into account while analyzing the file. </p>
<p>Usually it consists of converting the operand into an offset expression. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="fixup_8hpp.html#ab0a42c2b927e6a87c6bfbc97694e5546" title="Use fixup information for an address. ">apply_fixup()</a> If this callback is not specified then std_apply() is used. </dd></dl>

</div>
</div>
<a class="anchor" id="a1407a907fd1d996e76ce45faeeaab49a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#aef265b11f25357d520dcfd40aa8c18f3">uval_t</a>(<a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> * fixup_handler_t::get_value) (const <a class="el" href="structfixup__handler__t.html">fixup_handler_t</a> *fh, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the operand value. </p>
<p>This callback is called from <a class="el" href="fixup_8hpp.html#ae68a51805b27c4eae6e0b8efa2a32880" title="Get the operand value. ">get_fixup_value()</a>. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="fixup_8hpp.html#ae68a51805b27c4eae6e0b8efa2a32880" title="Get the operand value. ">get_fixup_value()</a> If this callback is not specified then std_get_value() is used. </dd></dl>

</div>
</div>
<a class="anchor" id="a746e5b923d4af600fa5fc013f75d140f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool(<a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> * fixup_handler_t::patch_value) (const <a class="el" href="structfixup__handler__t.html">fixup_handler_t</a> *fh, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, const <a class="el" href="structfixup__data__t.html">fixup_data_t</a> &amp;fd)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Patch the fixup bytes. </p>
<p>This callback is called from <a class="el" href="fixup_8hpp.html#a2a07510903124f52ac5c9fd57496a4b2" title="Patch the fixup bytes. ">patch_fixup_value()</a> or after changing the fixup (e.g. after it was moved from one location to another). If this callback is not specified then std_patch_value() is used. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="fixup_8hpp.html#a2a07510903124f52ac5c9fd57496a4b2" title="Patch the fixup bytes. ">patch_fixup_value()</a> </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">false</td><td>the fixup bytes do not fit. The database is changed even in this case. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="fixup_8hpp.html">fixup.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
